<form action="" method="post"> <input type="text" name="pass"><input type="submit"> </form> <?php if ($_POST['pass'] == 'pass') { echo "hello"; } ?>